package com.wsx.ones.cloud.redis;

import java.util.List;

/**
 * 接口服务的设置
 * Created by wangshuaixin on 17/5/11.
 */
public interface RedisService {

    public boolean set(String key,int db, String value);

    public String get(String key, int db);

    public boolean expire(String key,int db,long expire);

    public <T> boolean setList(String key, int db, List<T> list);

    public <T> List<T> getList(String key,int db, Class<T> clz);

    public long lpush(String key,int db,Object obj);

    public long rpush(String key,int db,Object obj);

    public String lpop(String key,int db);
}
